<?php
//设置页面标题
$this->pageTitle=Yii::app()->name.' - 修改密码';
$this->contentTitle='修改密码';
?>

<!--表单内容-->
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'member-form',
	'enableAjaxValidation'=>false,
        'enableClientValidation'=>true,
        'clientOptions'=>array(
            'validateOnSubmit'=>true
        ),
    'htmlOptions'=>array('class'=>'ajax_form'),
)); ?>
<table cellspacing="1" class="myform">
	

	<tr>
		<td align="right">旧密码：</td>
		<td>
			<?php echo $form->passwordField($model,'old_password',array('size'=>20,'maxlength'=>255,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'old_password'); ?>
		</td>
	</tr>
        
        <tr>
		<td align="right">新密码：</td>
		<td>
			<?php echo $form->passwordField($model,'new_password',array('size'=>20,'maxlength'=>255,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'new_password'); ?>
		</td>
	</tr>
        <tr>
		<td align="right">密码确认：</td>
		<td>
			<?php echo $form->passwordField($model,'repeat_password',array('size'=>20,'maxlength'=>255,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'repeat_password'); ?>
		</td>
	</tr>


	

	<tr>
        <td align="right"></td>
        <td>
            <input class="but" type="submit" name="yt1" value="提 交" />        </td>
    </tr>
</table>

<?php if(Yii::app()->user->getFlash('password'))
        echo "<script> art.dialog({
        id: 'dialogTest',
        title: '提示信息',
        time: 5,
        icon: 'succeed',
        content: '<b>修改密码成功！</b><br /><br />该消息5秒后自动消失！',
        button: [
            {
                name: '确定',
                focus: true
            }]
    });</script>" 

?>

<?php $this->endWidget(); ?>
<!--表单内容-->